from info.lib.yuntongxun.ronglian_sms_sdk import SmsSDK

accId = '2c94811c855ce7250185a494a6e407b8'
accToken = '905518262f364792a0fcfbfce0f64842'
appId = '2c94811c855ce7250185a494a7a307bf'
serverIP = "https://app.cloopen.com"
serverPort = '8883'


def send_message(mobile, datas):
    sdk = SmsSDK(accId, accToken, appId)
    tid = '1'
    mobile = '13713946178'
    datas = ("1231231",)
    resp = sdk.sendMessage(tid, mobile, datas)
    # print(resp["statusCode"])
    if int(resp["statusCode"]) == 000000:
        return "0"
    else:
        return "1"


if __name__ == '__main__':
    send_message()
